/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
  background-color: #fff9e6; /* 淡黄色背景 */
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* 链接样式 */
a {
  text-decoration: none;
  color: #e67e22;
  transition: all 0.2s;
}

a:hover {
  color: #d35400;
  text-decoration: underline;
}

/* 按钮基础样式 */
button {
  font-family: inherit;
  cursor: pointer;
  outline: none;
  border: none;
  transition: all 0.2s;
}

button:focus-visible {
  outline: 2px solid #e67e22;
  outline-offset: 2px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.4;
  color: #333;
}

/* 输入框基础样式 */
input, textarea {
  font-family: inherit;
  outline: none;
  border: 1px solid #ddd;
  padding: 10px 12px;
  border-radius: 6px;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  border-color: #e67e22;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 响应式布局 - 桌面端 */
@media (min-width: 1024px) {
  #app {
    max-width: none;
  }
}

/* 响应式布局 - 平板端 */
@media (max-width: 1023px) {
  body {
    padding: 0;
  }
}

/* 响应式布局 - 移动端 */
@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
}
